﻿<%@ Page Title="Log In" Language="vb" MasterPageFile="~/Logon.Master" AutoEventWireup="false"
    CodeBehind="Login.aspx.vb" Inherits="diy_wc_prototype.Login" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="loginPage">
    <asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="false" Visible="false">Register</asp:HyperLink>
    <asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false">
        <LayoutTemplate>
            <span class="failureNotification">
                <asp:Literal ID="FailureText" runat="server"></asp:Literal>
            </span>
            <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification"
                ValidationGroup="LoginUserValidationGroup" />
            <div class="accountInfo">
                <fieldset class="login">
                    <h1>
                        Sign in</h1>
                    <p>
                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Username:</asp:Label>
                        <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                            CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required."
                            ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                        <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                            CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required."
                            ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:CheckBox ID="RememberMe" runat="server" CssClass="noBorder" Style="width: 36px;
                            float: left;" />
                        <asp:Label ID="RememberMeLabel" runat="server" AssociatedControlID="RememberMe" CssClass="inline">Keep me logged in</asp:Label>
                    </p>
                </fieldset>
                <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="LoginUserValidationGroup"
                    CssClass="mybtn loginBtn" />
            </div>
        </LayoutTemplate>
    </asp:Login>
</asp:Content>
<asp:Content ID="signUpUser" ContentPlaceHolderID="signUpPage" runat="server">
    <h1>
        Not joined yet?</h1>
    <p>
        That's ok, you can sign up here.</p>
    <asp:Button ID="SignupBtn" runat="server" Text="Sign up" CssClass="mybtn loginBtn"
        PostBackUrl="~/Account/Register.aspx" />
</asp:Content>
<asp:Content ID="GuestUser" ContentPlaceHolderID="GuestPage" runat="server">
    <h1>
        Be our guest</h1>
    <p>
        Don't want to register just now, that's ok you can have a look at the list of cakes but for all
        the goodies you will need to sign up.</p>
    <br />
    <asp:Button ID="GuestBtn" runat="server" Text="Take a peek" CssClass="mybtn loginBtn"
        PostBackUrl="~/list.aspx" />
</asp:Content>
